package Month07.day24;

public class DemoThrow {
    public static void main(String[] args) throws ScoreOutofBoundException {
chick(-1);

    }
    private static void chick(int score) throws ScoreOutofBoundException {
        if (score>100||score<0){
            throw new ScoreOutofBoundException("数字范围不对");
        }
    }
}
